<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>CRM</title>
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/demo/demo.css">
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/dic.js"></script>
</head>
<body>

<div id="cc" class="easyui-layout" style="width:600px;height:400px;" fit="true">
    <div data-options="region:'west',title:'字典目录',split:true" style="width:600px;">
        <table id="dic_datagrid"></table>
    </div>
    <div data-options="region:'center',title:'字典目录明细'"  style="padding:5px;background:#eee;">
        <table id="dicItem_datagrid"></table>
    </div>

</div>

<div id="dic_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-xinzeng" plain="true" data-cmd="add">新增</a>
    <a class="easyui-linkbutton" iconCls="icon-bianji" plain="true" data-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" iconCls="icon-shanchu" plain="true" data-cmd="remove">删除</a>
    <a class="easyui-linkbutton" iconCls="icon-shuaxin" plain="true" data-cmd="reload">刷新</a>
</div>

<div id="dic_buttons">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
</div>

<div id="dic_dialog">
    <form id="dic_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top:15px">
            <tr>
                <td>目录编码</td>
                <td><input type="text" name="sn"/></td>
            </tr>
            <tr>
                <td>目录名称</td>
                <td><input type="text" name="name"/></td></td>
            </tr>
            <tr>
                <td>目录简介</td>
                <td><input type="text" name="intro"/></td></td>
            </tr>
        </table>
    </form>
</div>




<div id="dicItem_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-xinzeng" plain="true" data-cmd="addItem">新增</a>
    <a class="easyui-linkbutton" iconCls="icon-bianji" plain="true" data-cmd="editItem">编辑</a>
    <a class="easyui-linkbutton" iconCls="icon-shanchu" plain="true" data-cmd="removeItem">删除</a>
    <a class="easyui-linkbutton" iconCls="icon-shuaxin" plain="true" data-cmd="reloadItem">刷新</a>
</div>

<div id="dicItem_buttons">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="saveItem">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancelItem">取消</a>
</div>

<input type="hidden" name="dic.id" id="dicid">
<div id="dicItem_dialog">
    <form id="dicItem_form" method="post">
        <input type="hidden" name="id">
        <input type="hidden" name="dic.id" id="dic_id">
        <table align="center" style="margin-top:15px">
            <tr>
                <td>明细名称</td>
                <td><input type="text" name="name"/></td></td>
            </tr>
            <tr>
                <td>明细简介</td>
                <td><input type="text" name="intro"/></td></td>
            </tr>
            <%--<tr>
                <td>明细目录</td>
                <td>
                    <input class="easyui-combobox"
                           data-options="url:'/dic/list.do',valueField:'id',textField:'name',panelHeight:'auto'"
                           name="dic.id">
                </td>
            </tr>--%>
        </table>
    </form>
</div>

</body>
</html>